<template>
    <div>
        <el-popover placement="bottom" width="400" trigger="click">
            <template #reference>
                <el-button type="primary">下载</el-button>
            </template>
            <div class="bg-white p-4">
                <div>
                    下载作品格式为jpg

                </div>
                <el-button type="primary" @click="saveImg">立即下载</el-button>
            </div>
        </el-popover>
    </div>
</template>
<script setup>
const canvasEditor=inject('canvasEditor')
const saveImg=()=>{
    canvasEditor.saveImg();
}
</script>